<?php $countries = $form->getObject() ?>
<h1><?php echo $countries->isNew() ?  __("New ") : __("Edit ") ?> <?php echo __("Countries") ?></h1>

<form action="<?php echo url_for('countries/update'.(!$countries->isNew() ? '?countries_id='.$countries->getCountriesId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('countries/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$countries->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'countries/delete?countries_id='.$countries->getCountriesId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value=<?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['countries_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['countries_name']->renderError() ?>
          <?php echo $form['countries_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['countries_iso_code_2']->renderLabel() ?></th>
        <td>
          <?php echo $form['countries_iso_code_2']->renderError() ?>
          <?php echo $form['countries_iso_code_2'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['countries_iso_code_3']->renderLabel() ?></th>
        <td>
          <?php echo $form['countries_iso_code_3']->renderError() ?>
          <?php echo $form['countries_iso_code_3'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['address_format_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['address_format_id']->renderError() ?>
          <?php echo $form['address_format_id'] ?>

        <?php echo $form['countries_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
